<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>文件查询列表</title>
    <script type="text/javascript">
        window.onload = a;
        function a() {
            $("ul li:eq(2)").addClass("active");
        }
    </script>
</head>
<body class="container">
<div>
    <div>
        <form action="" id="fm">
            <div>
                <div>
                    &nbsp;&nbsp;&nbsp;&nbsp;
                    <!-- <button type="button" class="btn btn-default" onclick="download()">下载</button> -->
                    <button type="button" class="btn btn-default" onclick="delFile()">删除</button>
                </div>
                <table class="table table-striped">
                    <thead>
                    <tr>
                        <th><input type="checkbox" onclick="selectAll()"
                                   id="SelectAll"/></th>
                        <th>编号</th>
                        <th>文件名称</th>
                        <th>上传时间</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <c:forEach var="diskFile" items="${diskFileList}"
                               varStatus="status">
                        <tr>
                            <td><input type="checkbox" class="checkItem"/></td>
                            <td>${status.index+1 }</td>
                            <td>${diskFile.fileName }</td>
                            <td>${diskFile.uploadDate }</td>
                            <td id="fileUuid" style="display: none">${diskFile.uuid }</td>
                            <td>
                                <button type="button" class="btn btn-info btn-xs"
                                        onclick="javascript:window.location.href='/disktalk/file/download?ids=${diskFile.uuid }'">
                                    下载
                                </button>
                        </tr>
                    </c:forEach>
                    </tbody>
                </table>
            </div>
        </form>
    </div>
</div>

</body>

</html>